import cn.chencq.adbdemo.ShellUtils;

public class Main {

	public static void main(String[] args) {
		Process p1 = ShellUtils.adbCmd("connect 127.0.0.1:5555");
		try {
			if(p1.waitFor() ==0){
				Process process = ShellUtils.shell("getprop");
				System.out.println(ShellUtils.getShellOut(process));
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		} 
	}
}
